package com.song.ejf.service;

import java.util.List;
import java.util.Map;

import com.song.ejf.page.Page;
import com.song.ejf.pojo.SUser;

public interface UserService {
	public SUser getUserByUsernameAndPwd(String username,String password) throws Exception;
	public void loadUserPage(Page page,String username,String name) throws Exception;
	public boolean delUser(String[] checkItems) throws Exception;
	public void saveOrUpdateUser(SUser user) throws Exception;
	public SUser findUserById(String id) throws Exception;
	//根据用户id加载该用户所有角色
	public List<Map<String, String>> loadRoleByUserId(String uId) throws Exception;
	//更新用户相关角色
	public boolean updateUserRole(String[] checkItems,String userId) throws Exception;
}
